package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/27
*/
@Data
@ApiModel("问诊医生开的医疗服务")
@Table(name = "tbl_booking_medical_service")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingMedicalService extends BaseEntity {
    @Column(name = "booking_id")
    private String bookingId;

    @Column(name = "medical_service_id")
    private String medicalServiceId;

    /**
     * booking_product_package的id,如果是添加的package才存储
     */
    @Column(name = "booking_package_id")
    @ApiModelProperty("booking_product_package的id,如果是添加的package才存储")
    private Long bookingPackageId;

    @Column(name = "package_id")
    private String packageId;

    /**
     * 原价，2.0去掉了cms设置折扣，所以去掉了折扣相关字段。购买package时价格为0
     */
    @ApiModelProperty("原价，2.0去掉了cms设置折扣，所以去掉了折扣相关字段。购买package时价格为0")
    private BigDecimal price;

    /**
     * 0:none select 1:selected 2:paid 3:deliver
     */
    @ApiModelProperty("0:none select 1:selected 2:paid 3:deliver")
    private Integer status;

    private Integer show;

    /**
     * 复购booking_id
     */
    @Column(name = "booking_addition_id")
    @ApiModelProperty("复购booking_id")
    private String bookingAdditionId;

    /**
     * 1:service 2:package
     */
    @Column(name = "service_type")
    @ApiModelProperty("1:service 2:package")
    private Integer serviceType;

    /**
     * 第一次购买是否选中
     */
    @ApiModelProperty("第一次购买是否选中")
    private Integer selected;

    @Column(name = "in_exclusion_list")
    private Integer inExclusionList;

    @Column(name = "home_based_fee")
    private BigDecimal homeBasedFee;

    /**
     * 医生端填写的时间
     */
    @Column(name = "test_period")
    @ApiModelProperty("医生端填写的时间")
    private String testPeriod;

    /**
     * 医生端填写的时间单位
     */
    @Column(name = "test_period_unit")
    @ApiModelProperty("医生端填写的时间单位")
    private String testPeriodUnit;

    @Column(name = "temp_index")
    private Integer tempIndex;
}